﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hr.Models.WorkTime
{
    /// <summary>
    /// 标准上班时间
    /// </summary>
    public class StandardWorkTime
    {
        public int WorkTimeId { get; set; }

        public string WorkTimeName { get; set; }

        public IList<WorkTimeItem> WorkTimeList { get; set; }
    }

    public class WorkTimeItem
    {
        public DateTime FromTime { get; set; }

        public DateTime ToTime { get; set; }

        public WorkTimeType BizType { get; set; }

        /// <summary>
        /// 显示顺序
        /// </summary>
        public int Seq { get; set; }
    }

    public enum WorkTimeType
    {
        // 放假
        Free,
        // 正常上班
        Normal,
        // 周末
        Weekend,
        // 节日
        Holiday
    }
}
